import 'package:flutter/material.dart';

class SliverTabBarView extends StatelessWidget {
  final List<Widget> children;
  final TabController? controller;
  final Color color;

  const SliverTabBarView({
    required this.children,
    required this.color,
    this.controller,
    super.key,
  });

  @override
  Widget build(BuildContext context) {
    return SliverFillRemaining(
      child: ColoredBox(
        color: color,
        child: TabBarView(controller: controller, children: children),
      ),
    );
  }
}